package com.escope.casemanager.controller;

import com.escope.casemanager.model.CaseExample;
import com.escope.casemanager.model.HttpResult;
import com.escope.casemanager.model.PageModel;
import com.escope.casemanager.service.CaseExampleService;
import com.escope.casemanager.service.SysMessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 系统消息接口
 * 2024/3/15
 */
@RestController
@RequestMapping("message")
@CrossOrigin
@Api(value = "系统消息接口", tags = {"系统消息接口"})
public class SysMessageController {
    @Autowired
    private SysMessageService sysMessageService;

    @GetMapping(value = "/findByPage")
    @ApiOperation("查询系统消息分页列表")
    public HttpResult findByPage(PageModel page) {
        return sysMessageService.findByPage(page);
    }

    @GetMapping(value = "/findById")
    @ApiOperation("根据ID查询案例信息")
    public HttpResult findById(Long id) {
        return sysMessageService.findById(id);
    }


}
